ResourceUploader

Provides progress and status of a resource upload task.

Properties

Link copied to clipboard
abstract val currentFile: File?

Currently uploaded resource file.

Link copied to clipboard
@get:IntRange(from = 0, to = 100)
abstract val currentFileProgress: Int

Current resource file upload progress.

Link copied to clipboard
@get:IntRange(from = 1)
abstract val currentResourceIndex: Int

Index of the resource being currently uploaded.

Link copied to clipboard
abstract val status: MediaTaskStatus

Current status of the upload task.

Link copied to clipboard
abstract val targetMedia: MediaItem

Media item with which uploaded resource files will be associated.

Link copied to clipboard
@get:IntRange(from = 0, to = 100)
abstract val totalProgress: Int

Current progress of the task.

Link copied to clipboard
@get:IntRange(from = 1)
abstract val totalResourceCount: Int

Amount of resource(s) that the task will upload.